<?php echo $this->form?>
<hr/>
<table width="100%">
<?php foreach($this->shopList as $shop){ ?>
<tr>
<td width="15%" align="center">
<img src="<?php echo $shop['logo_path'] ?>" width="80px" />
</td>
<td width="%60">
<table>
<tr><td>店铺标题:</td><td><?php echo $shop['title']?></td></tr>
<tr><td>url:</td><td><input type="text" value="<?php echo $this->urlSpell($shop['title'])?>" size="80" name="url_spell_<?php echo $shop['sid']?>" /></td></tr>
<tr><td>key words：</td><td><input type="text" size="80" name="key_words_<?php echo $shop['sid']?>" /></td></tr>
<tr><td>click_url:</td><td><input type="text" size="80" name="click_url_<?php echo $shop['sid']?>" /></td></tr>
<tr><td>描述 :</td><td><textarea cols="50" id="description_<?php echo $shop['sid']?>"></textarea></td></tr>
</table>
</td>
<td width="10%">
<input type="button" value="提交" onclick="submitForm(<?php echo $shop['sid']?>)">
</td>
</tr>
<?php }?>
</table>
<form method="post" action="<?php echo $this->baseUrl().'/admin/shop/converted'?>" id="convertedForm">
<input type="hidden" name="sid" id="sid" />
<input type="hidden" name="url_spell" id="url_spell" />
<input type="hidden" name="key_words" id="key_words" />
<input type="hidden" name="click_url" id="click_url" />
<input type="hidden" name="description" id="description" />
</form>
<script>
function submitForm(sid){
	$("#sid").val(sid);
	$("#url_spell").val($("input[name=url_spell_"+sid+"]").val());
	$("#key_words").val($("input[name=key_words_"+sid+"]").val());
	$("#click_url").val($("input[name=click_url_"+sid+"]").val());
	$("#description").val($("#description_"+sid).val());
	$("#convertedForm").submit();

}
</script>